import 'package:flutter/material.dart';

class CustomTheme {
  // 公共样式
  static const double _titleFontSize = 20;

  // 高亮主题
  static final ThemeData lightTheme = ThemeData(
    primaryColor: Colors.blue,
    primaryTextTheme: TextTheme(
      subtitle1: TextStyle(
        color: Colors.yellow,
        fontSize: _titleFontSize
      )
    ),
    textTheme: TextTheme(
      bodyText1: TextStyle(color: Colors.red)
    ),
    iconTheme: IconThemeData(
      color: Colors.red,
    ),
    cardColor: Colors.red[100],
  );

  // 黑暗主题
  static final ThemeData darkTheme = ThemeData(
    primaryColor: Colors.grey,
    primaryTextTheme: TextTheme(
      subtitle1: TextStyle(
        color: Colors.grey,
        fontSize: _titleFontSize
      )
    ),
    textTheme: TextTheme(
      subtitle1: TextStyle(color: Colors.grey),
      bodyText1: TextStyle(color: Colors.grey[300])
    ),
    iconTheme: IconThemeData(
      color: Colors.black54,
    ),
    cardColor: Colors.grey[300],
  );
}